<template>
  <div class="goods">
    <goods-item class="goods-item" v-for="good in goods" :good="good" :key="good.iid || good.item_id" />
  </div>
</template>

<script>
  import GoodsItem from "./GoodsItem";

  export default {
    name: "GoodsList",
    props: {
      goods: {
        type: Array,
        default: () => []
      }
    },
    components: {
      GoodsItem
    }
  }
</script>

<style scoped>
  .goods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;

    padding: 1%;
  }
</style>
